package com.hh.feign.hystrix;

import com.hh.entity.Prod;
import com.hh.feign.IndexImgProdFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author 辉辉 2022/8/18 16:11
 */
@Component
@Slf4j
public class IndexImgProdFeignHystrix implements IndexImgProdFeign {
    /**
     * 根据id查询商品信息
     *
     * @param prodId
     * @return
     */
    @Override
    public Prod findProdByProdId(Long prodId) {
        log.error("远程调用失败");
        return null;
    }
}
